package com.mazsn.mapper;

import java.util.List;

import com.mazsn.model.User;

public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    /**
	 * 根据用户名查找用户
	 * @param userName
	 * @return
	 */
	User findUserByUserName(String userName);
	
	//这个方式我自己加的
    List<User> selectAllUser();
}